import request from '../../utils/request.js'

let prefix = '/ChatRoom'

// 创建房间即获取房间号
export function createRoom() {
	return request({
		url: prefix + '/createChatRoom',
		method: 'post'
	})
}

// 获取对应房间消息
export function getChatRoomMsgList(roomId) {
  return request({
    url: prefix+'/getChatRoomMsgList?roomId='+roomId,
    method: 'get'
  })
}